//
//  XPProgressView.h
//  ProgressDemo
//
//  Created by nhope on 2017/2/9.
//  Copyright © 2017年 xiaopin. All rights reserved.
//

#import <UIKit/UIKit.h>

@class XPScoreLevelItem;

@interface XPProgressView : UIView

/// 进度条宽度,默认`10.0`
@property (nonatomic, assign) CGFloat progressLineWidth;
/// 渐变颜色,数组存储的是CGColorRef对象
@property (nonatomic, strong) NSArray *gradientColors;
/// 总分,默认`5.0`
@property (nonatomic, assign) float score;
/// 当前得分,默认`0.0`
@property (nonatomic, assign) float currentScore;
/// 等级数据
@property (nonatomic, strong) NSArray<XPScoreLevelItem *> *levelItems;
/// 分割线的宽度,默认`50.0`
@property (nonatomic, assign) CGFloat separatorLineWidth;


/// 得分标签
@property (nonatomic, strong, readonly) UILabel *scoreLabel;
/// 得分等级标签
@property (nonatomic, strong, readonly) UILabel *scoreLevelLabel;

@end
